//
//  ZRHomeCellModel.m
//  SinaByOC
//
//  Created by 张锐 on 16/3/21.
//  Copyright © 2016年 zhangr. All rights reserved.
//

#import "ZRHomeCellModel.h"
#import "ZRHomeRetweetModel.h"

@implementation ZRHomeCellModel

+(instancetype)homeCellModelWithDictionary:(NSDictionary *)dict{

    ZRHomeCellModel * homeCellModel = [[ZRHomeCellModel alloc]init];
    
    [homeCellModel setValuesForKeysWithDictionary:dict];
    
    ZRHomeUserModel * homeUserModel = [ZRHomeUserModel homeUserModelWithDictionary:(NSDictionary *)homeCellModel.user];
    
    homeCellModel.user = homeUserModel;
    
    ZRHomeRetweetModel * retweet = [ZRHomeRetweetModel homeRetweetModelWithDictionary:(NSDictionary *)homeCellModel.retweeted_status];
    
    homeCellModel.retweeted_status = retweet;
    
    return homeCellModel;

}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{}

@end
